package edu.hawaii.jmotif.sequitur.logic;

/**
 * 
 * Container class to store the position of a SAX word within the original time series
 * 
 * @author Manfred Lerner
 * 
 */
public class SAXPosition {
  int startPos;
  int endPos;

  public SAXPosition() {
    this.startPos = -1;
    this.endPos = -1;
  }

  public SAXPosition(int startPos, int endPos) {
    this.startPos = startPos;
    this.endPos = endPos;
  }

  /**
   * @param startPos starting position within the original time series
   */
  public void setStartPos(int startPos) {
    this.startPos = startPos;
  }

  /**
   * @return starting position within the original time series
   */
  public int getStartPos() {
    return startPos;
  }

  /**
   * @param endPos ending position within the original time series
   */
  public void setEndPos(int endPos) {
    this.endPos = endPos;
  }

  /**
   * @return ending position within the original time series
   */
  public int getEndPos() {
    return endPos;
  }

  /*
   * (non-Javadoc)
   * 
   * @see java.lang.Object#toString()
   */
  public String toString() {
    return "[" + startPos + " - " + endPos + "]";
  }
}
